package com.pikaqiu.warehouse.domain.dto;

import com.pikaqiu.warehouse.domain.entity.User;
import lombok.Data;

/**
 * @Author: Administrator
 * @Date: 2024/8/14
 */
@Data
public class UserDto {

    private Integer id;
    private Integer companyId;
    private String nickName;
    private String headImage;
    private String token;

    public UserDto(User user, Integer companyId, String token) {
        this.id = user.getId();
        this.companyId = companyId;
        this.nickName = user.getNickName();
        this.headImage = user.getHeadImage();
        this.token = token;
    }
}
